import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart';
/// 地块信息类，用来保存地块数据
class LandEntity {
  /// 选择的是哪一个
  late int _selectPosition;

  /// 坐标点集合
  final List<Position> _positions = [];

  LandEntity(int selectPosition, List<Position> positions) {
    _selectPosition = selectPosition;
    for (var element in positions) {
      _positions.add(element);
    }
  }

  List<Position> get positions => _positions;

  int get selectPosition => _selectPosition;
}
